#ifndef _DIRECTION_H_
#define _DIRECTION_H_

enum Direction {
    DIR_UP          = 0,
    DIR_UP_RIGHT,
    DIR_RIGHT,
    DIR_DOWN_RIGHT,
    DIR_DOWN,
    DIR_DOWN_LEFT,
    DIR_LEFT,
    DIR_UP_LEFT,
    DIR_MAX,
};

const char* DirectionToStr(int direction);
int NormDirection(int direction);
int DeltaDirection(int dir_a, int dir_b);

#endif
